<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>android 调webview</title>

    <style>
    </style>
</head>
<body>
<div class="container">
    <button id="btn1" onclick="window.Android.testClick('我是js传过来的')">按钮1</button>
    <button id="btn2" onclick='btn2()'>按钮2</button>
    <button id="btn3" onclick='btn3()'>按钮3</button>
    <button id="btn4" onclick='btn4()'>按钮4</button>
</div>
<script>
    function btn1(){
        alert("按钮1");
    }
     function btn2(){
        alert("按钮2")`;
    }
     function btn3(){
        alert("按钮3");
    }
     function btn4(){
        alert("按钮4");
    }

</script>
</body>
</html>